//
//  testAne.m
//  testAne
//
//  Created by 虎子哥 on 15/3/16.
//  Copyright (c) 2015年 Makeblock. All rights reserved.
//

#import "testAne.h"

FREObject OpenHID(FREContext ctx,void*funcData,uint32_t argc,FREObject argv[]){
    return NULL;
}
void ContextInitializer(void*extData,const uint8_t* ctxType,FREContext ctx,uint32_t* numFunctionsToTest,const FRENamedFunction** functionsToSet){
    *numFunctionsToTest = 1;
    FRENamedFunction *func = (FRENamedFunction*)(malloc(sizeof(FRENamedFunction)));
    func[0].name = (const uint8_t*)"OpenHID";
    func[0].functionData = NULL;
    func[0].function = &OpenHID;
    *functionsToSet = func;
}
void ContextFinalizer(FREContext ctx){
    return;
}
void ExtInitializer(void ** extDataToSet,FREContextInitializer*ctxInitializerToSet,FREContextFinalizer*ctxFinalizerToSet){
    *extDataToSet = NULL;
    *ctxInitializerToSet = ContextInitializer;
    *ctxFinalizerToSet = ContextFinalizer;
}
void ExtFinalizer(void* extData){
    FREContext nullCTX;
    nullCTX = 0;
    ContextFinalizer(nullCTX);
    return;
}